const webpack = require("webpack");
const path = require('path');
module.exports={
  watch: true,
  devtool:"eval-source-map",
  mode:"development",
  watchOptions: {
    poll: 1000, // 每秒询问多少次
    aggregateTimeout: 500,  //防抖 多少毫秒后再次触发
    ignored: /node_modules/ //忽略时时监听
  },
  output:{
    "hotUpdateMainFilename":"hot-main.json",
    "hotUpdateChunkFilename":"hot-chunk.json"
  },
  plugins:[
     new webpack.HotModuleReplacementPlugin()
  ]
}